local GridNode = class("GridNode");
function GridNode:ctor(args)
    self.x = args.x;
    self.y = args.y;
    self.parentGridNode = args.par;
    self.g = 0;
    self.h = 0;
    self.f = 0;
end

function GridNode:getX()
    return self.x;
end

function GridNode:setX(x)
    self.x = x or 0;
end

function GridNode:getY()
    return self.y;
end

function GridNode:setY(y)
    self.y = y or 0;
end

function GridNode:getParent()
    return self.parentGridNode;
end

function GridNode:setParent(par)
    self.parentGridNode = par or nil;
end

function GridNode:getG()
    return self.g;
end
function GridNode:setG(g)
    self.g = g or 0;
end

function GridNode:getH()
    return self.h;
end

function GridNode:setH(h)
    self.h = h or 0;
end

function GridNode:getF()
    return self.f;
end

function GridNode:setF(f)
    self.f = f or 0;
end

return GridNode;


--endregion
